﻿using System;
using Microsoft.Xna.Framework;

namespace WindowsGame1
{
    class RunEnemy : PrototypeEnemy
    {
        public RunEnemy(string artName, Vector2 start, int health, int dmg, int speed)
        {
            AssetName = artName;
            Position = start;
            damage = dmg;
            hp = health;
            maxSpeed = speed;
            spawnsChildren = false;
            attackTime = DEFAULTATTACKTIME;
            attackDelay = DEFAULTATTACKDELAY;
            attackRange = DEFAULTRANGE;
            
        }
        
        public RunEnemy(Vector2 start,  int health, int dmg, int speed)
        {
            Position = start;
            damage = dmg;
            hp = health;
            maxSpeed = speed;
            spawnsChildren = false;
            attackTime = DEFAULTATTACKTIME;
            attackDelay = DEFAULTATTACKDELAY;
            attackRange = DEFAULTRANGE;
        }

        public RunEnemy()
        {

        }

        internal override void movement(GameTime theGameTime)
        {
            ATTACKTHEMHEADON(theGameTime);
        }


        internal override void transitionToAttacking()
        {
            currentTexture = mAttackSpriteTexture;
        }

        internal override void performAttack()
        {
            //TODO: Add enemy Projectile
            Console.WriteLine("I ATTACK NOWZ");
        }

        internal override void transitionToWaiting()
        {
            currentTexture = mSpriteTexture;
        }

        internal override void transitionToWalking()
        {

        }
    }
}
